<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Exercise1.1</title>
</head>
<body style="font-family: arial">
<%
String strings[];
strings = new String[3];
if ((request.getParameter("1") == null || request.getParameter("2") == null) || request.getParameter("3") == null) {
out.println(
		"<form method=\"post\">" +
		"<input type=\"text\" name=\"1\"/><br/>" +
		"<input type=\"text\" name=\"2\"/><br/>" +
		"<input type=\"text\" name=\"3\"/><br/>" +
		"<input type=\"submit\"/></form><br/>"
		
		);}
else
{
	int x;
	for (x=0; x<strings.length; x++) {
	strings[x] = request.getParameter(Integer.toString(x+1));	
	}
	
	for (x=0; x<strings.length; x++) {
		out.println(strings[x] + "<br/>");	
		}

%>
<br/><a href="http://localhost:8080/TestDemo/Exer1_1.jsp">Back</a>
<% } %>
</body>
</html>